#ifndef _GRO_PANEL_H__
#define _GRO_PANEL_H__

#include "GRO_Gui.h"
#include "GRO_Group.h"


namespace GRO
{


class Panel : public Group
{
    public:
    bool grabInput;
    bool keepDepth;  // Don't rise to the top when clicked

    Panel();
    Panel(const Dimensions& dims);
    
    virtual ~Panel();
    
    virtual void pin(Widget* widget, int x, int y);
    virtual void open();
    virtual void close();
    
    virtual void connectBeacon(Widget* widget, Beacon* beacon, const std::string& fn_name, const std::vector<std::string>& args);
    
    virtual TiXmlElement* save(TiXmlElement* parent);
    virtual bool load(TiXmlElement* w);
};

}




#endif
